from rest_framework import serializers

from home.models import Banner, Nav


class NavModelSerializer(serializers.ModelSerializer):
  class Meta:
    model = Nav
    fields = ['title', 'link']

class BannerModelSerializer(serializers.ModelSerializer):
  class Meta:
    model = Banner
    fields = ['image', 'link']